#!/bin/bash
for ITER in 0 1 2 3 4 5 6 7 8 9; do
	for CODE in M09400 T84000 M00100 M43000 T63000 T01000 T8X310 T67000 M41000 others; do
		echo "~~~~~~ $1/${ITER}: ${CODE} ~~~~~~ TEST InfoGain top-$2 ~~~~~~~"
		time java -Xmx1024m weka.classifiers.trees.J48 -C 0.25 -M 2 -t $1/${ITER}/train_${CODE}_ig_$2.arff -d $1/${ITER}/train_${CODE}_ig_$2.WekaJ48Model -T $1/${ITER}/test_${CODE}_ig_$2.arff -p 0 > $1/${ITER}/test_${CODE}_ig_$2.Prediction

	#	java -Xmx1800m weka.classifiers.functions.SMO -C 1.0 -L 0.0010 -P 1.0E-12 -N 0 -V -1 -W 1 -K "weka.classifiers.functions.supportVector.PolyKernel -C 250007 -E 1.0" -t $1/${ITER}/train_${CODE}_ig_$2.arff -T $1/${ITER}/test_${CODE}_ig_$2.arff -p 0 > $1/${ITER}/test_${CODE}_ig_$2.Prediction
	#	java -Xmx1800m weka.classifiers.functions.SMO -C 1.0 -L 0.0010 -P 1.0E-12 -N 0 -V -1 -W 1 -K "weka.classifiers.functions.supportVector.PolyKernel -C 250007 -E 1.0" -t $1/${ITER}/train_${CODE}_ig_$2.arff -T $1/${ITER}/test_${CODE}_ig_$2.arff -p 0 > $1/${ITER}/test_${CODE}_ig_$2.PredictionDetail
		echo "-----------------------";
		echo
	done; 
done; 
